package day2.Exer;

public class Tourist {
    String name;
    int age;
    int price;

    public String setprcie() {
        if (age < 14 || age >= 60) {
            return "免费";
        }
        return "20";
    }
    public void showtour(){
        System.out.println("游客"+name+"年龄"+age+"门票"+price);
    }

}
